//
//	mineBodyDataInfoModel.swift
//	Model file generated using JSONExport: https://github.com/Ahmed-Ali/JSONExport

import Foundation 
import ObjectMapper


class mineBodyDataInfoModel : NSObject, NSCoding, Mappable{

	var abdomen : String?
	var arm : String?
	var bmi : String?
	var bmiStatus : Int?
	var bust : String?
	var createTime : String?
	var createUser : Int?
	var fat : String?
	var height : String?
	var id : Int?
	var isDeleted : Int?
	var pygal : String?
	var recordTime : String?
	var shank : String?
	var thigh : String?
	var updateTime : String?
	var updateUser : Int?
	var userId : Int?
	var version : Int?
	var waist : String?
	var weight : String?


	class func newInstance(map: Map) -> Mappable?{
		return mineBodyDataInfoModel()
	}
	required init?(map: Map){}
	private override init(){}

	func mapping(map: Map)
	{
		abdomen <- map["abdomen"]
		arm <- map["arm"]
		bmi <- map["bmi"]
		bmiStatus <- map["bmiStatus"]
		bust <- map["bust"]
		createTime <- map["createTime"]
		createUser <- map["createUser"]
		fat <- map["fat"]
		height <- map["height"]
		id <- map["id"]
		isDeleted <- map["isDeleted"]
		pygal <- map["pygal"]
		recordTime <- map["recordTime"]
		shank <- map["shank"]
		thigh <- map["thigh"]
		updateTime <- map["updateTime"]
		updateUser <- map["updateUser"]
		userId <- map["userId"]
		version <- map["version"]
		waist <- map["waist"]
		weight <- map["weight"]
		
	}

    /**
    * NSCoding required initializer.
    * Fills the data from the passed decoder
    */
    @objc required init(coder aDecoder: NSCoder)
	{
         abdomen = aDecoder.decodeObject(forKey: "abdomen") as? String
         arm = aDecoder.decodeObject(forKey: "arm") as? String
         bmi = aDecoder.decodeObject(forKey: "bmi") as? String
         bmiStatus = aDecoder.decodeObject(forKey: "bmiStatus") as? Int
         bust = aDecoder.decodeObject(forKey: "bust") as? String
         createTime = aDecoder.decodeObject(forKey: "createTime") as? String
         createUser = aDecoder.decodeObject(forKey: "createUser") as? Int
         fat = aDecoder.decodeObject(forKey: "fat") as? String
         height = aDecoder.decodeObject(forKey: "height") as? String
         id = aDecoder.decodeObject(forKey: "id") as? Int
         isDeleted = aDecoder.decodeObject(forKey: "isDeleted") as? Int
         pygal = aDecoder.decodeObject(forKey: "pygal") as? String
         recordTime = aDecoder.decodeObject(forKey: "recordTime") as? String
         shank = aDecoder.decodeObject(forKey: "shank") as? String
         thigh = aDecoder.decodeObject(forKey: "thigh") as? String
         updateTime = aDecoder.decodeObject(forKey: "updateTime") as? String
         updateUser = aDecoder.decodeObject(forKey: "updateUser") as? Int
         userId = aDecoder.decodeObject(forKey: "userId") as? Int
         version = aDecoder.decodeObject(forKey: "version") as? Int
         waist = aDecoder.decodeObject(forKey: "waist") as? String
         weight = aDecoder.decodeObject(forKey: "weight") as? String

	}

    /**
    * NSCoding required method.
    * Encodes mode properties into the decoder
    */
    @objc func encode(with aCoder: NSCoder)
	{
		if abdomen != nil{
			aCoder.encode(abdomen, forKey: "abdomen")
		}
		if arm != nil{
			aCoder.encode(arm, forKey: "arm")
		}
		if bmi != nil{
			aCoder.encode(bmi, forKey: "bmi")
		}
		if bmiStatus != nil{
			aCoder.encode(bmiStatus, forKey: "bmiStatus")
		}
		if bust != nil{
			aCoder.encode(bust, forKey: "bust")
		}
		if createTime != nil{
			aCoder.encode(createTime, forKey: "createTime")
		}
		if createUser != nil{
			aCoder.encode(createUser, forKey: "createUser")
		}
		if fat != nil{
			aCoder.encode(fat, forKey: "fat")
		}
		if height != nil{
			aCoder.encode(height, forKey: "height")
		}
		if id != nil{
			aCoder.encode(id, forKey: "id")
		}
		if isDeleted != nil{
			aCoder.encode(isDeleted, forKey: "isDeleted")
		}
		if pygal != nil{
			aCoder.encode(pygal, forKey: "pygal")
		}
		if recordTime != nil{
			aCoder.encode(recordTime, forKey: "recordTime")
		}
		if shank != nil{
			aCoder.encode(shank, forKey: "shank")
		}
		if thigh != nil{
			aCoder.encode(thigh, forKey: "thigh")
		}
		if updateTime != nil{
			aCoder.encode(updateTime, forKey: "updateTime")
		}
		if updateUser != nil{
			aCoder.encode(updateUser, forKey: "updateUser")
		}
		if userId != nil{
			aCoder.encode(userId, forKey: "userId")
		}
		if version != nil{
			aCoder.encode(version, forKey: "version")
		}
		if waist != nil{
			aCoder.encode(waist, forKey: "waist")
		}
		if weight != nil{
			aCoder.encode(weight, forKey: "weight")
		}

	}

}